package qldc.pm.tiensu.model.impl;

import com.liferay.portal.kernel.bean.AutoEscapeBeanHandler;
import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.kernel.util.DateUtil;
import com.liferay.portal.kernel.util.GetterUtil;
import com.liferay.portal.kernel.util.ProxyUtil;
import com.liferay.portal.kernel.util.StringBundler;
import com.liferay.portal.kernel.util.StringPool;
import com.liferay.portal.model.CacheModel;
import com.liferay.portal.model.impl.BaseModelImpl;
import com.liferay.portal.service.ServiceContext;
import com.liferay.portal.util.PortalUtil;

import com.liferay.portlet.expando.model.ExpandoBridge;
import com.liferay.portlet.expando.util.ExpandoBridgeFactoryUtil;

import qldc.pm.tiensu.model.YeuCauTrichLuc;
import qldc.pm.tiensu.model.YeuCauTrichLucModel;

import java.io.Serializable;

import java.sql.Types;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;

/**
 * The base model implementation for the YeuCauTrichLuc service. Represents a row in the &quot;TS_YeuCauTrichLuc&quot; database table, with each column mapped to a property of this class.
 *
 * <p>
 * This implementation and its corresponding interface {@link qldc.pm.tiensu.model.YeuCauTrichLucModel} exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in {@link YeuCauTrichLucImpl}.
 * </p>
 *
 * @author Brian Wing Shun Chan
 * @see YeuCauTrichLucImpl
 * @see qldc.pm.tiensu.model.YeuCauTrichLuc
 * @see qldc.pm.tiensu.model.YeuCauTrichLucModel
 * @generated
 */
public class YeuCauTrichLucModelImpl extends BaseModelImpl<YeuCauTrichLuc>
    implements YeuCauTrichLucModel {
    /*
     * NOTE FOR DEVELOPERS:
     *
     * Never modify or reference this class directly. All methods that expect a yeu cau trich luc model instance should use the {@link qldc.pm.tiensu.model.YeuCauTrichLuc} interface instead.
     */
    public static final String TABLE_NAME = "TS_YeuCauTrichLuc";
    public static final Object[][] TABLE_COLUMNS = {
            { "yeuCauTrichLucId", Types.BIGINT },
            { "userId", Types.BIGINT },
            { "userName", Types.VARCHAR },
            { "createDate", Types.TIMESTAMP },
            { "modifiedDate", Types.TIMESTAMP },
            { "hoVaTenNguoiYeuCauTrichLuc", Types.VARCHAR },
            { "kinhGui", Types.VARCHAR },
            { "gioiTinh", Types.INTEGER },
            { "quocTich", Types.VARCHAR },
            { "danTocId", Types.BIGINT },
            { "soCMNDDoiTuongTrichLuc", Types.VARCHAR },
            { "ngayCapCMNDDoiTuongTrichLuc", Types.TIMESTAMP },
            { "noiCapCMNDDoiTuongTrichLuc", Types.VARCHAR },
            { "soHoChieuDoiTuongTrichLuc", Types.VARCHAR },
            { "ngayCapHoChieuDoiTuongTrichLuc", Types.TIMESTAMP },
            { "noiCapHoChieuDoiTuongTrichLuc", Types.VARCHAR },
            { "soDinhDanhCaNhanDoiTuongTrichLuc", Types.VARCHAR },
            { "hoVaTenDoiTuongTrichLuc", Types.VARCHAR },
            { "ngaySinhDoiTuongTrichLuc", Types.TIMESTAMP },
            { "noiThuongTruDoiTuongTrichLucTinhId", Types.BIGINT },
            { "noiThuongTruDoiTuongTrichLucQuanHuyenId", Types.BIGINT },
            { "noiThuongTruDoiTuongTrichLucPhuongXaId", Types.BIGINT },
            { "noiThuongTruDoiTuongTrichLucDiaChi", Types.VARCHAR },
            { "soSoHoKhauDoiTuongTrichLuc", Types.VARCHAR },
            { "noiDungTrichLuc", Types.VARCHAR },
            { "ngayDeNghiTraTrichLuc", Types.TIMESTAMP },
            { "ngayLapTrichLuc", Types.TIMESTAMP },
            { "chuThich", Types.VARCHAR },
            { "maYeuCauTrichLuc", Types.VARCHAR },
            { "hoVaTenGoiKhac", Types.VARCHAR },
            { "hoVaTenCha", Types.VARCHAR },
            { "hoVaTenMe", Types.VARCHAR },
            { "hoTenVoHoacChong", Types.VARCHAR },
            { "coQuanYeuCauTrichLuc", Types.VARCHAR },
            { "noiTamTruDoiTuongTrichLucTinhId", Types.BIGINT },
            { "noiTamTruDoiTuongTrichLucQuanHuyenId", Types.BIGINT },
            { "noiTamTruDoiTuongTrichLucPhuongXaId", Types.BIGINT },
            { "noiTamTruDoiTuongTrichLucDiaChi", Types.VARCHAR },
            { "daTrichLuc", Types.BOOLEAN },
            { "noiSinh", Types.VARCHAR },
            { "noiSinhTinhId", Types.BIGINT },
            { "noiSinhQuanHuyenId", Types.BIGINT },
            { "noiSinhPhuongXaId", Types.BIGINT }
        };
    public static final String TABLE_SQL_CREATE = "create table TS_YeuCauTrichLuc (yeuCauTrichLucId LONG not null primary key,userId LONG,userName VARCHAR(75) null,createDate DATE null,modifiedDate DATE null,hoVaTenNguoiYeuCauTrichLuc VARCHAR(150) null,kinhGui VARCHAR(75) null,gioiTinh INTEGER,quocTich VARCHAR(75) null,danTocId LONG,soCMNDDoiTuongTrichLuc VARCHAR(25) null,ngayCapCMNDDoiTuongTrichLuc DATE null,noiCapCMNDDoiTuongTrichLuc VARCHAR(75) null,soHoChieuDoiTuongTrichLuc VARCHAR(75) null,ngayCapHoChieuDoiTuongTrichLuc DATE null,noiCapHoChieuDoiTuongTrichLuc VARCHAR(75) null,soDinhDanhCaNhanDoiTuongTrichLuc VARCHAR(25) null,hoVaTenDoiTuongTrichLuc VARCHAR(150) null,ngaySinhDoiTuongTrichLuc DATE null,noiThuongTruDoiTuongTrichLucTinhId LONG,noiThuongTruDoiTuongTrichLucQuanHuyenId LONG,noiThuongTruDoiTuongTrichLucPhuongXaId LONG,noiThuongTruDoiTuongTrichLucDiaChi VARCHAR(250) null,soSoHoKhauDoiTuongTrichLuc VARCHAR(25) null,noiDungTrichLuc STRING null,ngayDeNghiTraTrichLuc DATE null,ngayLapTrichLuc DATE null,chuThich STRING null,maYeuCauTrichLuc VARCHAR(50) null,hoVaTenGoiKhac VARCHAR(100) null,hoVaTenCha VARCHAR(100) null,hoVaTenMe VARCHAR(100) null,hoTenVoHoacChong VARCHAR(100) null,coQuanYeuCauTrichLuc VARCHAR(200) null,noiTamTruDoiTuongTrichLucTinhId LONG,noiTamTruDoiTuongTrichLucQuanHuyenId LONG,noiTamTruDoiTuongTrichLucPhuongXaId LONG,noiTamTruDoiTuongTrichLucDiaChi VARCHAR(250) null,daTrichLuc BOOLEAN,noiSinh VARCHAR(75) null,noiSinhTinhId LONG,noiSinhQuanHuyenId LONG,noiSinhPhuongXaId LONG)";
    public static final String TABLE_SQL_DROP = "drop table TS_YeuCauTrichLuc";
    public static final String ORDER_BY_JPQL = " ORDER BY yeuCauTrichLuc.createDate DESC";
    public static final String ORDER_BY_SQL = " ORDER BY TS_YeuCauTrichLuc.createDate DESC";
    public static final String DATA_SOURCE = "liferayDataSource";
    public static final String SESSION_FACTORY = "liferaySessionFactory";
    public static final String TX_MANAGER = "liferayTransactionManager";
    public static final boolean ENTITY_CACHE_ENABLED = GetterUtil.getBoolean(com.liferay.util.service.ServiceProps.get(
                "value.object.entity.cache.enabled.qldc.pm.tiensu.model.YeuCauTrichLuc"),
            true);
    public static final boolean FINDER_CACHE_ENABLED = GetterUtil.getBoolean(com.liferay.util.service.ServiceProps.get(
                "value.object.finder.cache.enabled.qldc.pm.tiensu.model.YeuCauTrichLuc"),
            true);
    public static final boolean COLUMN_BITMASK_ENABLED = GetterUtil.getBoolean(com.liferay.util.service.ServiceProps.get(
                "value.object.column.bitmask.enabled.qldc.pm.tiensu.model.YeuCauTrichLuc"),
            true);
    public static long DATRICHLUC_COLUMN_BITMASK = 1L;
    public static long HOVATENDOITUONGTRICHLUC_COLUMN_BITMASK = 2L;
    public static long HOVATENNGUOIYEUCAUTRICHLUC_COLUMN_BITMASK = 4L;
    public static long SOCMNDDOITUONGTRICHLUC_COLUMN_BITMASK = 8L;
    public static long SODINHDANHCANHANDOITUONGTRICHLUC_COLUMN_BITMASK = 16L;
    public static long SOSOHOKHAUDOITUONGTRICHLUC_COLUMN_BITMASK = 32L;
    public static long CREATEDATE_COLUMN_BITMASK = 64L;
    public static final long LOCK_EXPIRATION_TIME = GetterUtil.getLong(com.liferay.util.service.ServiceProps.get(
                "lock.expiration.time.qldc.pm.tiensu.model.YeuCauTrichLuc"));
    private static ClassLoader _classLoader = YeuCauTrichLuc.class.getClassLoader();
    private static Class<?>[] _escapedModelInterfaces = new Class[] {
            YeuCauTrichLuc.class
        };
    private long _yeuCauTrichLucId;
    private long _userId;
    private String _userUuid;
    private String _userName;
    private Date _createDate;
    private Date _modifiedDate;
    private String _hoVaTenNguoiYeuCauTrichLuc;
    private String _originalHoVaTenNguoiYeuCauTrichLuc;
    private String _kinhGui;
    private int _gioiTinh;
    private String _quocTich;
    private long _danTocId;
    private String _soCMNDDoiTuongTrichLuc;
    private String _originalSoCMNDDoiTuongTrichLuc;
    private Date _ngayCapCMNDDoiTuongTrichLuc;
    private String _noiCapCMNDDoiTuongTrichLuc;
    private String _soHoChieuDoiTuongTrichLuc;
    private Date _ngayCapHoChieuDoiTuongTrichLuc;
    private String _noiCapHoChieuDoiTuongTrichLuc;
    private String _soDinhDanhCaNhanDoiTuongTrichLuc;
    private String _originalSoDinhDanhCaNhanDoiTuongTrichLuc;
    private String _hoVaTenDoiTuongTrichLuc;
    private String _originalHoVaTenDoiTuongTrichLuc;
    private Date _ngaySinhDoiTuongTrichLuc;
    private long _noiThuongTruDoiTuongTrichLucTinhId;
    private long _noiThuongTruDoiTuongTrichLucQuanHuyenId;
    private long _noiThuongTruDoiTuongTrichLucPhuongXaId;
    private String _noiThuongTruDoiTuongTrichLucDiaChi;
    private String _soSoHoKhauDoiTuongTrichLuc;
    private String _originalSoSoHoKhauDoiTuongTrichLuc;
    private String _noiDungTrichLuc;
    private Date _ngayDeNghiTraTrichLuc;
    private Date _ngayLapTrichLuc;
    private String _chuThich;
    private String _maYeuCauTrichLuc;
    private String _hoVaTenGoiKhac;
    private String _hoVaTenCha;
    private String _hoVaTenMe;
    private String _hoTenVoHoacChong;
    private String _coQuanYeuCauTrichLuc;
    private long _noiTamTruDoiTuongTrichLucTinhId;
    private long _noiTamTruDoiTuongTrichLucQuanHuyenId;
    private long _noiTamTruDoiTuongTrichLucPhuongXaId;
    private String _noiTamTruDoiTuongTrichLucDiaChi;
    private Boolean _daTrichLuc;
    private Boolean _originalDaTrichLuc;
    private boolean _setOriginalDaTrichLuc;
    private String _noiSinh;
    private long _noiSinhTinhId;
    private long _noiSinhQuanHuyenId;
    private long _noiSinhPhuongXaId;
    private long _columnBitmask;
    private YeuCauTrichLuc _escapedModel;

    public YeuCauTrichLucModelImpl() {
    }

    @Override
    public long getPrimaryKey() {
        return _yeuCauTrichLucId;
    }

    @Override
    public void setPrimaryKey(long primaryKey) {
        setYeuCauTrichLucId(primaryKey);
    }

    @Override
    public Serializable getPrimaryKeyObj() {
        return _yeuCauTrichLucId;
    }

    @Override
    public void setPrimaryKeyObj(Serializable primaryKeyObj) {
        setPrimaryKey(((Long) primaryKeyObj).longValue());
    }

    @Override
    public Class<?> getModelClass() {
        return YeuCauTrichLuc.class;
    }

    @Override
    public String getModelClassName() {
        return YeuCauTrichLuc.class.getName();
    }

    @Override
    public Map<String, Object> getModelAttributes() {
        Map<String, Object> attributes = new HashMap<String, Object>();

        attributes.put("yeuCauTrichLucId", getYeuCauTrichLucId());
        attributes.put("userId", getUserId());
        attributes.put("userName", getUserName());
        attributes.put("createDate", getCreateDate());
        attributes.put("modifiedDate", getModifiedDate());
        attributes.put("hoVaTenNguoiYeuCauTrichLuc",
            getHoVaTenNguoiYeuCauTrichLuc());
        attributes.put("kinhGui", getKinhGui());
        attributes.put("gioiTinh", getGioiTinh());
        attributes.put("quocTich", getQuocTich());
        attributes.put("danTocId", getDanTocId());
        attributes.put("soCMNDDoiTuongTrichLuc", getSoCMNDDoiTuongTrichLuc());
        attributes.put("ngayCapCMNDDoiTuongTrichLuc",
            getNgayCapCMNDDoiTuongTrichLuc());
        attributes.put("noiCapCMNDDoiTuongTrichLuc",
            getNoiCapCMNDDoiTuongTrichLuc());
        attributes.put("soHoChieuDoiTuongTrichLuc",
            getSoHoChieuDoiTuongTrichLuc());
        attributes.put("ngayCapHoChieuDoiTuongTrichLuc",
            getNgayCapHoChieuDoiTuongTrichLuc());
        attributes.put("noiCapHoChieuDoiTuongTrichLuc",
            getNoiCapHoChieuDoiTuongTrichLuc());
        attributes.put("soDinhDanhCaNhanDoiTuongTrichLuc",
            getSoDinhDanhCaNhanDoiTuongTrichLuc());
        attributes.put("hoVaTenDoiTuongTrichLuc", getHoVaTenDoiTuongTrichLuc());
        attributes.put("ngaySinhDoiTuongTrichLuc", getNgaySinhDoiTuongTrichLuc());
        attributes.put("noiThuongTruDoiTuongTrichLucTinhId",
            getNoiThuongTruDoiTuongTrichLucTinhId());
        attributes.put("noiThuongTruDoiTuongTrichLucQuanHuyenId",
            getNoiThuongTruDoiTuongTrichLucQuanHuyenId());
        attributes.put("noiThuongTruDoiTuongTrichLucPhuongXaId",
            getNoiThuongTruDoiTuongTrichLucPhuongXaId());
        attributes.put("noiThuongTruDoiTuongTrichLucDiaChi",
            getNoiThuongTruDoiTuongTrichLucDiaChi());
        attributes.put("soSoHoKhauDoiTuongTrichLuc",
            getSoSoHoKhauDoiTuongTrichLuc());
        attributes.put("noiDungTrichLuc", getNoiDungTrichLuc());
        attributes.put("ngayDeNghiTraTrichLuc", getNgayDeNghiTraTrichLuc());
        attributes.put("ngayLapTrichLuc", getNgayLapTrichLuc());
        attributes.put("chuThich", getChuThich());
        attributes.put("maYeuCauTrichLuc", getMaYeuCauTrichLuc());
        attributes.put("hoVaTenGoiKhac", getHoVaTenGoiKhac());
        attributes.put("hoVaTenCha", getHoVaTenCha());
        attributes.put("hoVaTenMe", getHoVaTenMe());
        attributes.put("hoTenVoHoacChong", getHoTenVoHoacChong());
        attributes.put("coQuanYeuCauTrichLuc", getCoQuanYeuCauTrichLuc());
        attributes.put("noiTamTruDoiTuongTrichLucTinhId",
            getNoiTamTruDoiTuongTrichLucTinhId());
        attributes.put("noiTamTruDoiTuongTrichLucQuanHuyenId",
            getNoiTamTruDoiTuongTrichLucQuanHuyenId());
        attributes.put("noiTamTruDoiTuongTrichLucPhuongXaId",
            getNoiTamTruDoiTuongTrichLucPhuongXaId());
        attributes.put("noiTamTruDoiTuongTrichLucDiaChi",
            getNoiTamTruDoiTuongTrichLucDiaChi());
        attributes.put("daTrichLuc", getDaTrichLuc());
        attributes.put("noiSinh", getNoiSinh());
        attributes.put("noiSinhTinhId", getNoiSinhTinhId());
        attributes.put("noiSinhQuanHuyenId", getNoiSinhQuanHuyenId());
        attributes.put("noiSinhPhuongXaId", getNoiSinhPhuongXaId());

        return attributes;
    }

    @Override
    public void setModelAttributes(Map<String, Object> attributes) {
        Long yeuCauTrichLucId = (Long) attributes.get("yeuCauTrichLucId");

        if (yeuCauTrichLucId != null) {
            setYeuCauTrichLucId(yeuCauTrichLucId);
        }

        Long userId = (Long) attributes.get("userId");

        if (userId != null) {
            setUserId(userId);
        }

        String userName = (String) attributes.get("userName");

        if (userName != null) {
            setUserName(userName);
        }

        Date createDate = (Date) attributes.get("createDate");

        if (createDate != null) {
            setCreateDate(createDate);
        }

        Date modifiedDate = (Date) attributes.get("modifiedDate");

        if (modifiedDate != null) {
            setModifiedDate(modifiedDate);
        }

        String hoVaTenNguoiYeuCauTrichLuc = (String) attributes.get(
                "hoVaTenNguoiYeuCauTrichLuc");

        if (hoVaTenNguoiYeuCauTrichLuc != null) {
            setHoVaTenNguoiYeuCauTrichLuc(hoVaTenNguoiYeuCauTrichLuc);
        }

        String kinhGui = (String) attributes.get("kinhGui");

        if (kinhGui != null) {
            setKinhGui(kinhGui);
        }

        Integer gioiTinh = (Integer) attributes.get("gioiTinh");

        if (gioiTinh != null) {
            setGioiTinh(gioiTinh);
        }

        String quocTich = (String) attributes.get("quocTich");

        if (quocTich != null) {
            setQuocTich(quocTich);
        }

        Long danTocId = (Long) attributes.get("danTocId");

        if (danTocId != null) {
            setDanTocId(danTocId);
        }

        String soCMNDDoiTuongTrichLuc = (String) attributes.get(
                "soCMNDDoiTuongTrichLuc");

        if (soCMNDDoiTuongTrichLuc != null) {
            setSoCMNDDoiTuongTrichLuc(soCMNDDoiTuongTrichLuc);
        }

        Date ngayCapCMNDDoiTuongTrichLuc = (Date) attributes.get(
                "ngayCapCMNDDoiTuongTrichLuc");

        if (ngayCapCMNDDoiTuongTrichLuc != null) {
            setNgayCapCMNDDoiTuongTrichLuc(ngayCapCMNDDoiTuongTrichLuc);
        }

        String noiCapCMNDDoiTuongTrichLuc = (String) attributes.get(
                "noiCapCMNDDoiTuongTrichLuc");

        if (noiCapCMNDDoiTuongTrichLuc != null) {
            setNoiCapCMNDDoiTuongTrichLuc(noiCapCMNDDoiTuongTrichLuc);
        }

        String soHoChieuDoiTuongTrichLuc = (String) attributes.get(
                "soHoChieuDoiTuongTrichLuc");

        if (soHoChieuDoiTuongTrichLuc != null) {
            setSoHoChieuDoiTuongTrichLuc(soHoChieuDoiTuongTrichLuc);
        }

        Date ngayCapHoChieuDoiTuongTrichLuc = (Date) attributes.get(
                "ngayCapHoChieuDoiTuongTrichLuc");

        if (ngayCapHoChieuDoiTuongTrichLuc != null) {
            setNgayCapHoChieuDoiTuongTrichLuc(ngayCapHoChieuDoiTuongTrichLuc);
        }

        String noiCapHoChieuDoiTuongTrichLuc = (String) attributes.get(
                "noiCapHoChieuDoiTuongTrichLuc");

        if (noiCapHoChieuDoiTuongTrichLuc != null) {
            setNoiCapHoChieuDoiTuongTrichLuc(noiCapHoChieuDoiTuongTrichLuc);
        }

        String soDinhDanhCaNhanDoiTuongTrichLuc = (String) attributes.get(
                "soDinhDanhCaNhanDoiTuongTrichLuc");

        if (soDinhDanhCaNhanDoiTuongTrichLuc != null) {
            setSoDinhDanhCaNhanDoiTuongTrichLuc(soDinhDanhCaNhanDoiTuongTrichLuc);
        }

        String hoVaTenDoiTuongTrichLuc = (String) attributes.get(
                "hoVaTenDoiTuongTrichLuc");

        if (hoVaTenDoiTuongTrichLuc != null) {
            setHoVaTenDoiTuongTrichLuc(hoVaTenDoiTuongTrichLuc);
        }

        Date ngaySinhDoiTuongTrichLuc = (Date) attributes.get(
                "ngaySinhDoiTuongTrichLuc");

        if (ngaySinhDoiTuongTrichLuc != null) {
            setNgaySinhDoiTuongTrichLuc(ngaySinhDoiTuongTrichLuc);
        }

        Long noiThuongTruDoiTuongTrichLucTinhId = (Long) attributes.get(
                "noiThuongTruDoiTuongTrichLucTinhId");

        if (noiThuongTruDoiTuongTrichLucTinhId != null) {
            setNoiThuongTruDoiTuongTrichLucTinhId(noiThuongTruDoiTuongTrichLucTinhId);
        }

        Long noiThuongTruDoiTuongTrichLucQuanHuyenId = (Long) attributes.get(
                "noiThuongTruDoiTuongTrichLucQuanHuyenId");

        if (noiThuongTruDoiTuongTrichLucQuanHuyenId != null) {
            setNoiThuongTruDoiTuongTrichLucQuanHuyenId(noiThuongTruDoiTuongTrichLucQuanHuyenId);
        }

        Long noiThuongTruDoiTuongTrichLucPhuongXaId = (Long) attributes.get(
                "noiThuongTruDoiTuongTrichLucPhuongXaId");

        if (noiThuongTruDoiTuongTrichLucPhuongXaId != null) {
            setNoiThuongTruDoiTuongTrichLucPhuongXaId(noiThuongTruDoiTuongTrichLucPhuongXaId);
        }

        String noiThuongTruDoiTuongTrichLucDiaChi = (String) attributes.get(
                "noiThuongTruDoiTuongTrichLucDiaChi");

        if (noiThuongTruDoiTuongTrichLucDiaChi != null) {
            setNoiThuongTruDoiTuongTrichLucDiaChi(noiThuongTruDoiTuongTrichLucDiaChi);
        }

        String soSoHoKhauDoiTuongTrichLuc = (String) attributes.get(
                "soSoHoKhauDoiTuongTrichLuc");

        if (soSoHoKhauDoiTuongTrichLuc != null) {
            setSoSoHoKhauDoiTuongTrichLuc(soSoHoKhauDoiTuongTrichLuc);
        }

        String noiDungTrichLuc = (String) attributes.get("noiDungTrichLuc");

        if (noiDungTrichLuc != null) {
            setNoiDungTrichLuc(noiDungTrichLuc);
        }

        Date ngayDeNghiTraTrichLuc = (Date) attributes.get(
                "ngayDeNghiTraTrichLuc");

        if (ngayDeNghiTraTrichLuc != null) {
            setNgayDeNghiTraTrichLuc(ngayDeNghiTraTrichLuc);
        }

        Date ngayLapTrichLuc = (Date) attributes.get("ngayLapTrichLuc");

        if (ngayLapTrichLuc != null) {
            setNgayLapTrichLuc(ngayLapTrichLuc);
        }

        String chuThich = (String) attributes.get("chuThich");

        if (chuThich != null) {
            setChuThich(chuThich);
        }

        String maYeuCauTrichLuc = (String) attributes.get("maYeuCauTrichLuc");

        if (maYeuCauTrichLuc != null) {
            setMaYeuCauTrichLuc(maYeuCauTrichLuc);
        }

        String hoVaTenGoiKhac = (String) attributes.get("hoVaTenGoiKhac");

        if (hoVaTenGoiKhac != null) {
            setHoVaTenGoiKhac(hoVaTenGoiKhac);
        }

        String hoVaTenCha = (String) attributes.get("hoVaTenCha");

        if (hoVaTenCha != null) {
            setHoVaTenCha(hoVaTenCha);
        }

        String hoVaTenMe = (String) attributes.get("hoVaTenMe");

        if (hoVaTenMe != null) {
            setHoVaTenMe(hoVaTenMe);
        }

        String hoTenVoHoacChong = (String) attributes.get("hoTenVoHoacChong");

        if (hoTenVoHoacChong != null) {
            setHoTenVoHoacChong(hoTenVoHoacChong);
        }

        String coQuanYeuCauTrichLuc = (String) attributes.get(
                "coQuanYeuCauTrichLuc");

        if (coQuanYeuCauTrichLuc != null) {
            setCoQuanYeuCauTrichLuc(coQuanYeuCauTrichLuc);
        }

        Long noiTamTruDoiTuongTrichLucTinhId = (Long) attributes.get(
                "noiTamTruDoiTuongTrichLucTinhId");

        if (noiTamTruDoiTuongTrichLucTinhId != null) {
            setNoiTamTruDoiTuongTrichLucTinhId(noiTamTruDoiTuongTrichLucTinhId);
        }

        Long noiTamTruDoiTuongTrichLucQuanHuyenId = (Long) attributes.get(
                "noiTamTruDoiTuongTrichLucQuanHuyenId");

        if (noiTamTruDoiTuongTrichLucQuanHuyenId != null) {
            setNoiTamTruDoiTuongTrichLucQuanHuyenId(noiTamTruDoiTuongTrichLucQuanHuyenId);
        }

        Long noiTamTruDoiTuongTrichLucPhuongXaId = (Long) attributes.get(
                "noiTamTruDoiTuongTrichLucPhuongXaId");

        if (noiTamTruDoiTuongTrichLucPhuongXaId != null) {
            setNoiTamTruDoiTuongTrichLucPhuongXaId(noiTamTruDoiTuongTrichLucPhuongXaId);
        }

        String noiTamTruDoiTuongTrichLucDiaChi = (String) attributes.get(
                "noiTamTruDoiTuongTrichLucDiaChi");

        if (noiTamTruDoiTuongTrichLucDiaChi != null) {
            setNoiTamTruDoiTuongTrichLucDiaChi(noiTamTruDoiTuongTrichLucDiaChi);
        }

        Boolean daTrichLuc = (Boolean) attributes.get("daTrichLuc");

        if (daTrichLuc != null) {
            setDaTrichLuc(daTrichLuc);
        }

        String noiSinh = (String) attributes.get("noiSinh");

        if (noiSinh != null) {
            setNoiSinh(noiSinh);
        }

        Long noiSinhTinhId = (Long) attributes.get("noiSinhTinhId");

        if (noiSinhTinhId != null) {
            setNoiSinhTinhId(noiSinhTinhId);
        }

        Long noiSinhQuanHuyenId = (Long) attributes.get("noiSinhQuanHuyenId");

        if (noiSinhQuanHuyenId != null) {
            setNoiSinhQuanHuyenId(noiSinhQuanHuyenId);
        }

        Long noiSinhPhuongXaId = (Long) attributes.get("noiSinhPhuongXaId");

        if (noiSinhPhuongXaId != null) {
            setNoiSinhPhuongXaId(noiSinhPhuongXaId);
        }
    }

    @Override
    public long getYeuCauTrichLucId() {
        return _yeuCauTrichLucId;
    }

    @Override
    public void setYeuCauTrichLucId(long yeuCauTrichLucId) {
        _yeuCauTrichLucId = yeuCauTrichLucId;
    }

    @Override
    public long getUserId() {
        return _userId;
    }

    @Override
    public void setUserId(long userId) {
        _userId = userId;
    }

    @Override
    public String getUserUuid() throws SystemException {
        return PortalUtil.getUserValue(getUserId(), "uuid", _userUuid);
    }

    @Override
    public void setUserUuid(String userUuid) {
        _userUuid = userUuid;
    }

    @Override
    public String getUserName() {
        if (_userName == null) {
            return StringPool.BLANK;
        } else {
            return _userName;
        }
    }

    @Override
    public void setUserName(String userName) {
        _userName = userName;
    }

    @Override
    public Date getCreateDate() {
        return _createDate;
    }

    @Override
    public void setCreateDate(Date createDate) {
        _columnBitmask = -1L;

        _createDate = createDate;
    }

    @Override
    public Date getModifiedDate() {
        return _modifiedDate;
    }

    @Override
    public void setModifiedDate(Date modifiedDate) {
        _modifiedDate = modifiedDate;
    }

    @Override
    public String getHoVaTenNguoiYeuCauTrichLuc() {
        if (_hoVaTenNguoiYeuCauTrichLuc == null) {
            return StringPool.BLANK;
        } else {
            return _hoVaTenNguoiYeuCauTrichLuc;
        }
    }

    @Override
    public void setHoVaTenNguoiYeuCauTrichLuc(String hoVaTenNguoiYeuCauTrichLuc) {
        _columnBitmask |= HOVATENNGUOIYEUCAUTRICHLUC_COLUMN_BITMASK;

        if (_originalHoVaTenNguoiYeuCauTrichLuc == null) {
            _originalHoVaTenNguoiYeuCauTrichLuc = _hoVaTenNguoiYeuCauTrichLuc;
        }

        _hoVaTenNguoiYeuCauTrichLuc = hoVaTenNguoiYeuCauTrichLuc;
    }

    public String getOriginalHoVaTenNguoiYeuCauTrichLuc() {
        return GetterUtil.getString(_originalHoVaTenNguoiYeuCauTrichLuc);
    }

    @Override
    public String getKinhGui() {
        if (_kinhGui == null) {
            return StringPool.BLANK;
        } else {
            return _kinhGui;
        }
    }

    @Override
    public void setKinhGui(String kinhGui) {
        _kinhGui = kinhGui;
    }

    @Override
    public int getGioiTinh() {
        return _gioiTinh;
    }

    @Override
    public void setGioiTinh(int gioiTinh) {
        _gioiTinh = gioiTinh;
    }

    @Override
    public String getQuocTich() {
        if (_quocTich == null) {
            return StringPool.BLANK;
        } else {
            return _quocTich;
        }
    }

    @Override
    public void setQuocTich(String quocTich) {
        _quocTich = quocTich;
    }

    @Override
    public long getDanTocId() {
        return _danTocId;
    }

    @Override
    public void setDanTocId(long danTocId) {
        _danTocId = danTocId;
    }

    @Override
    public String getSoCMNDDoiTuongTrichLuc() {
        if (_soCMNDDoiTuongTrichLuc == null) {
            return StringPool.BLANK;
        } else {
            return _soCMNDDoiTuongTrichLuc;
        }
    }

    @Override
    public void setSoCMNDDoiTuongTrichLuc(String soCMNDDoiTuongTrichLuc) {
        _columnBitmask |= SOCMNDDOITUONGTRICHLUC_COLUMN_BITMASK;

        if (_originalSoCMNDDoiTuongTrichLuc == null) {
            _originalSoCMNDDoiTuongTrichLuc = _soCMNDDoiTuongTrichLuc;
        }

        _soCMNDDoiTuongTrichLuc = soCMNDDoiTuongTrichLuc;
    }

    public String getOriginalSoCMNDDoiTuongTrichLuc() {
        return GetterUtil.getString(_originalSoCMNDDoiTuongTrichLuc);
    }

    @Override
    public Date getNgayCapCMNDDoiTuongTrichLuc() {
        return _ngayCapCMNDDoiTuongTrichLuc;
    }

    @Override
    public void setNgayCapCMNDDoiTuongTrichLuc(Date ngayCapCMNDDoiTuongTrichLuc) {
        _ngayCapCMNDDoiTuongTrichLuc = ngayCapCMNDDoiTuongTrichLuc;
    }

    @Override
    public String getNoiCapCMNDDoiTuongTrichLuc() {
        if (_noiCapCMNDDoiTuongTrichLuc == null) {
            return StringPool.BLANK;
        } else {
            return _noiCapCMNDDoiTuongTrichLuc;
        }
    }

    @Override
    public void setNoiCapCMNDDoiTuongTrichLuc(String noiCapCMNDDoiTuongTrichLuc) {
        _noiCapCMNDDoiTuongTrichLuc = noiCapCMNDDoiTuongTrichLuc;
    }

    @Override
    public String getSoHoChieuDoiTuongTrichLuc() {
        if (_soHoChieuDoiTuongTrichLuc == null) {
            return StringPool.BLANK;
        } else {
            return _soHoChieuDoiTuongTrichLuc;
        }
    }

    @Override
    public void setSoHoChieuDoiTuongTrichLuc(String soHoChieuDoiTuongTrichLuc) {
        _soHoChieuDoiTuongTrichLuc = soHoChieuDoiTuongTrichLuc;
    }

    @Override
    public Date getNgayCapHoChieuDoiTuongTrichLuc() {
        return _ngayCapHoChieuDoiTuongTrichLuc;
    }

    @Override
    public void setNgayCapHoChieuDoiTuongTrichLuc(
        Date ngayCapHoChieuDoiTuongTrichLuc) {
        _ngayCapHoChieuDoiTuongTrichLuc = ngayCapHoChieuDoiTuongTrichLuc;
    }

    @Override
    public String getNoiCapHoChieuDoiTuongTrichLuc() {
        if (_noiCapHoChieuDoiTuongTrichLuc == null) {
            return StringPool.BLANK;
        } else {
            return _noiCapHoChieuDoiTuongTrichLuc;
        }
    }

    @Override
    public void setNoiCapHoChieuDoiTuongTrichLuc(
        String noiCapHoChieuDoiTuongTrichLuc) {
        _noiCapHoChieuDoiTuongTrichLuc = noiCapHoChieuDoiTuongTrichLuc;
    }

    @Override
    public String getSoDinhDanhCaNhanDoiTuongTrichLuc() {
        if (_soDinhDanhCaNhanDoiTuongTrichLuc == null) {
            return StringPool.BLANK;
        } else {
            return _soDinhDanhCaNhanDoiTuongTrichLuc;
        }
    }

    @Override
    public void setSoDinhDanhCaNhanDoiTuongTrichLuc(
        String soDinhDanhCaNhanDoiTuongTrichLuc) {
        _columnBitmask |= SODINHDANHCANHANDOITUONGTRICHLUC_COLUMN_BITMASK;

        if (_originalSoDinhDanhCaNhanDoiTuongTrichLuc == null) {
            _originalSoDinhDanhCaNhanDoiTuongTrichLuc = _soDinhDanhCaNhanDoiTuongTrichLuc;
        }

        _soDinhDanhCaNhanDoiTuongTrichLuc = soDinhDanhCaNhanDoiTuongTrichLuc;
    }

    public String getOriginalSoDinhDanhCaNhanDoiTuongTrichLuc() {
        return GetterUtil.getString(_originalSoDinhDanhCaNhanDoiTuongTrichLuc);
    }

    @Override
    public String getHoVaTenDoiTuongTrichLuc() {
        if (_hoVaTenDoiTuongTrichLuc == null) {
            return StringPool.BLANK;
        } else {
            return _hoVaTenDoiTuongTrichLuc;
        }
    }

    @Override
    public void setHoVaTenDoiTuongTrichLuc(String hoVaTenDoiTuongTrichLuc) {
        _columnBitmask |= HOVATENDOITUONGTRICHLUC_COLUMN_BITMASK;

        if (_originalHoVaTenDoiTuongTrichLuc == null) {
            _originalHoVaTenDoiTuongTrichLuc = _hoVaTenDoiTuongTrichLuc;
        }

        _hoVaTenDoiTuongTrichLuc = hoVaTenDoiTuongTrichLuc;
    }

    public String getOriginalHoVaTenDoiTuongTrichLuc() {
        return GetterUtil.getString(_originalHoVaTenDoiTuongTrichLuc);
    }

    @Override
    public Date getNgaySinhDoiTuongTrichLuc() {
        return _ngaySinhDoiTuongTrichLuc;
    }

    @Override
    public void setNgaySinhDoiTuongTrichLuc(Date ngaySinhDoiTuongTrichLuc) {
        _ngaySinhDoiTuongTrichLuc = ngaySinhDoiTuongTrichLuc;
    }

    @Override
    public long getNoiThuongTruDoiTuongTrichLucTinhId() {
        return _noiThuongTruDoiTuongTrichLucTinhId;
    }

    @Override
    public void setNoiThuongTruDoiTuongTrichLucTinhId(
        long noiThuongTruDoiTuongTrichLucTinhId) {
        _noiThuongTruDoiTuongTrichLucTinhId = noiThuongTruDoiTuongTrichLucTinhId;
    }

    @Override
    public long getNoiThuongTruDoiTuongTrichLucQuanHuyenId() {
        return _noiThuongTruDoiTuongTrichLucQuanHuyenId;
    }

    @Override
    public void setNoiThuongTruDoiTuongTrichLucQuanHuyenId(
        long noiThuongTruDoiTuongTrichLucQuanHuyenId) {
        _noiThuongTruDoiTuongTrichLucQuanHuyenId = noiThuongTruDoiTuongTrichLucQuanHuyenId;
    }

    @Override
    public long getNoiThuongTruDoiTuongTrichLucPhuongXaId() {
        return _noiThuongTruDoiTuongTrichLucPhuongXaId;
    }

    @Override
    public void setNoiThuongTruDoiTuongTrichLucPhuongXaId(
        long noiThuongTruDoiTuongTrichLucPhuongXaId) {
        _noiThuongTruDoiTuongTrichLucPhuongXaId = noiThuongTruDoiTuongTrichLucPhuongXaId;
    }

    @Override
    public String getNoiThuongTruDoiTuongTrichLucDiaChi() {
        if (_noiThuongTruDoiTuongTrichLucDiaChi == null) {
            return StringPool.BLANK;
        } else {
            return _noiThuongTruDoiTuongTrichLucDiaChi;
        }
    }

    @Override
    public void setNoiThuongTruDoiTuongTrichLucDiaChi(
        String noiThuongTruDoiTuongTrichLucDiaChi) {
        _noiThuongTruDoiTuongTrichLucDiaChi = noiThuongTruDoiTuongTrichLucDiaChi;
    }

    @Override
    public String getSoSoHoKhauDoiTuongTrichLuc() {
        if (_soSoHoKhauDoiTuongTrichLuc == null) {
            return StringPool.BLANK;
        } else {
            return _soSoHoKhauDoiTuongTrichLuc;
        }
    }

    @Override
    public void setSoSoHoKhauDoiTuongTrichLuc(String soSoHoKhauDoiTuongTrichLuc) {
        _columnBitmask |= SOSOHOKHAUDOITUONGTRICHLUC_COLUMN_BITMASK;

        if (_originalSoSoHoKhauDoiTuongTrichLuc == null) {
            _originalSoSoHoKhauDoiTuongTrichLuc = _soSoHoKhauDoiTuongTrichLuc;
        }

        _soSoHoKhauDoiTuongTrichLuc = soSoHoKhauDoiTuongTrichLuc;
    }

    public String getOriginalSoSoHoKhauDoiTuongTrichLuc() {
        return GetterUtil.getString(_originalSoSoHoKhauDoiTuongTrichLuc);
    }

    @Override
    public String getNoiDungTrichLuc() {
        if (_noiDungTrichLuc == null) {
            return StringPool.BLANK;
        } else {
            return _noiDungTrichLuc;
        }
    }

    @Override
    public void setNoiDungTrichLuc(String noiDungTrichLuc) {
        _noiDungTrichLuc = noiDungTrichLuc;
    }

    @Override
    public Date getNgayDeNghiTraTrichLuc() {
        return _ngayDeNghiTraTrichLuc;
    }

    @Override
    public void setNgayDeNghiTraTrichLuc(Date ngayDeNghiTraTrichLuc) {
        _ngayDeNghiTraTrichLuc = ngayDeNghiTraTrichLuc;
    }

    @Override
    public Date getNgayLapTrichLuc() {
        return _ngayLapTrichLuc;
    }

    @Override
    public void setNgayLapTrichLuc(Date ngayLapTrichLuc) {
        _ngayLapTrichLuc = ngayLapTrichLuc;
    }

    @Override
    public String getChuThich() {
        if (_chuThich == null) {
            return StringPool.BLANK;
        } else {
            return _chuThich;
        }
    }

    @Override
    public void setChuThich(String chuThich) {
        _chuThich = chuThich;
    }

    @Override
    public String getMaYeuCauTrichLuc() {
        if (_maYeuCauTrichLuc == null) {
            return StringPool.BLANK;
        } else {
            return _maYeuCauTrichLuc;
        }
    }

    @Override
    public void setMaYeuCauTrichLuc(String maYeuCauTrichLuc) {
        _maYeuCauTrichLuc = maYeuCauTrichLuc;
    }

    @Override
    public String getHoVaTenGoiKhac() {
        if (_hoVaTenGoiKhac == null) {
            return StringPool.BLANK;
        } else {
            return _hoVaTenGoiKhac;
        }
    }

    @Override
    public void setHoVaTenGoiKhac(String hoVaTenGoiKhac) {
        _hoVaTenGoiKhac = hoVaTenGoiKhac;
    }

    @Override
    public String getHoVaTenCha() {
        if (_hoVaTenCha == null) {
            return StringPool.BLANK;
        } else {
            return _hoVaTenCha;
        }
    }

    @Override
    public void setHoVaTenCha(String hoVaTenCha) {
        _hoVaTenCha = hoVaTenCha;
    }

    @Override
    public String getHoVaTenMe() {
        if (_hoVaTenMe == null) {
            return StringPool.BLANK;
        } else {
            return _hoVaTenMe;
        }
    }

    @Override
    public void setHoVaTenMe(String hoVaTenMe) {
        _hoVaTenMe = hoVaTenMe;
    }

    @Override
    public String getHoTenVoHoacChong() {
        if (_hoTenVoHoacChong == null) {
            return StringPool.BLANK;
        } else {
            return _hoTenVoHoacChong;
        }
    }

    @Override
    public void setHoTenVoHoacChong(String hoTenVoHoacChong) {
        _hoTenVoHoacChong = hoTenVoHoacChong;
    }

    @Override
    public String getCoQuanYeuCauTrichLuc() {
        if (_coQuanYeuCauTrichLuc == null) {
            return StringPool.BLANK;
        } else {
            return _coQuanYeuCauTrichLuc;
        }
    }

    @Override
    public void setCoQuanYeuCauTrichLuc(String coQuanYeuCauTrichLuc) {
        _coQuanYeuCauTrichLuc = coQuanYeuCauTrichLuc;
    }

    @Override
    public long getNoiTamTruDoiTuongTrichLucTinhId() {
        return _noiTamTruDoiTuongTrichLucTinhId;
    }

    @Override
    public void setNoiTamTruDoiTuongTrichLucTinhId(
        long noiTamTruDoiTuongTrichLucTinhId) {
        _noiTamTruDoiTuongTrichLucTinhId = noiTamTruDoiTuongTrichLucTinhId;
    }

    @Override
    public long getNoiTamTruDoiTuongTrichLucQuanHuyenId() {
        return _noiTamTruDoiTuongTrichLucQuanHuyenId;
    }

    @Override
    public void setNoiTamTruDoiTuongTrichLucQuanHuyenId(
        long noiTamTruDoiTuongTrichLucQuanHuyenId) {
        _noiTamTruDoiTuongTrichLucQuanHuyenId = noiTamTruDoiTuongTrichLucQuanHuyenId;
    }

    @Override
    public long getNoiTamTruDoiTuongTrichLucPhuongXaId() {
        return _noiTamTruDoiTuongTrichLucPhuongXaId;
    }

    @Override
    public void setNoiTamTruDoiTuongTrichLucPhuongXaId(
        long noiTamTruDoiTuongTrichLucPhuongXaId) {
        _noiTamTruDoiTuongTrichLucPhuongXaId = noiTamTruDoiTuongTrichLucPhuongXaId;
    }

    @Override
    public String getNoiTamTruDoiTuongTrichLucDiaChi() {
        if (_noiTamTruDoiTuongTrichLucDiaChi == null) {
            return StringPool.BLANK;
        } else {
            return _noiTamTruDoiTuongTrichLucDiaChi;
        }
    }

    @Override
    public void setNoiTamTruDoiTuongTrichLucDiaChi(
        String noiTamTruDoiTuongTrichLucDiaChi) {
        _noiTamTruDoiTuongTrichLucDiaChi = noiTamTruDoiTuongTrichLucDiaChi;
    }

    @Override
    public Boolean getDaTrichLuc() {
        return _daTrichLuc;
    }

    @Override
    public void setDaTrichLuc(Boolean daTrichLuc) {
        _columnBitmask |= DATRICHLUC_COLUMN_BITMASK;

        if (!_setOriginalDaTrichLuc) {
            _setOriginalDaTrichLuc = true;

            _originalDaTrichLuc = _daTrichLuc;
        }

        _daTrichLuc = daTrichLuc;
    }

    public Boolean getOriginalDaTrichLuc() {
        return _originalDaTrichLuc;
    }

    @Override
    public String getNoiSinh() {
        if (_noiSinh == null) {
            return StringPool.BLANK;
        } else {
            return _noiSinh;
        }
    }

    @Override
    public void setNoiSinh(String noiSinh) {
        _noiSinh = noiSinh;
    }

    @Override
    public long getNoiSinhTinhId() {
        return _noiSinhTinhId;
    }

    @Override
    public void setNoiSinhTinhId(long noiSinhTinhId) {
        _noiSinhTinhId = noiSinhTinhId;
    }

    @Override
    public long getNoiSinhQuanHuyenId() {
        return _noiSinhQuanHuyenId;
    }

    @Override
    public void setNoiSinhQuanHuyenId(long noiSinhQuanHuyenId) {
        _noiSinhQuanHuyenId = noiSinhQuanHuyenId;
    }

    @Override
    public long getNoiSinhPhuongXaId() {
        return _noiSinhPhuongXaId;
    }

    @Override
    public void setNoiSinhPhuongXaId(long noiSinhPhuongXaId) {
        _noiSinhPhuongXaId = noiSinhPhuongXaId;
    }

    public long getColumnBitmask() {
        return _columnBitmask;
    }

    @Override
    public ExpandoBridge getExpandoBridge() {
        return ExpandoBridgeFactoryUtil.getExpandoBridge(0,
            YeuCauTrichLuc.class.getName(), getPrimaryKey());
    }

    @Override
    public void setExpandoBridgeAttributes(ServiceContext serviceContext) {
        ExpandoBridge expandoBridge = getExpandoBridge();

        expandoBridge.setAttributes(serviceContext);
    }

    @Override
    public YeuCauTrichLuc toEscapedModel() {
        if (_escapedModel == null) {
            _escapedModel = (YeuCauTrichLuc) ProxyUtil.newProxyInstance(_classLoader,
                    _escapedModelInterfaces, new AutoEscapeBeanHandler(this));
        }

        return _escapedModel;
    }

    @Override
    public Object clone() {
        YeuCauTrichLucImpl yeuCauTrichLucImpl = new YeuCauTrichLucImpl();

        yeuCauTrichLucImpl.setYeuCauTrichLucId(getYeuCauTrichLucId());
        yeuCauTrichLucImpl.setUserId(getUserId());
        yeuCauTrichLucImpl.setUserName(getUserName());
        yeuCauTrichLucImpl.setCreateDate(getCreateDate());
        yeuCauTrichLucImpl.setModifiedDate(getModifiedDate());
        yeuCauTrichLucImpl.setHoVaTenNguoiYeuCauTrichLuc(getHoVaTenNguoiYeuCauTrichLuc());
        yeuCauTrichLucImpl.setKinhGui(getKinhGui());
        yeuCauTrichLucImpl.setGioiTinh(getGioiTinh());
        yeuCauTrichLucImpl.setQuocTich(getQuocTich());
        yeuCauTrichLucImpl.setDanTocId(getDanTocId());
        yeuCauTrichLucImpl.setSoCMNDDoiTuongTrichLuc(getSoCMNDDoiTuongTrichLuc());
        yeuCauTrichLucImpl.setNgayCapCMNDDoiTuongTrichLuc(getNgayCapCMNDDoiTuongTrichLuc());
        yeuCauTrichLucImpl.setNoiCapCMNDDoiTuongTrichLuc(getNoiCapCMNDDoiTuongTrichLuc());
        yeuCauTrichLucImpl.setSoHoChieuDoiTuongTrichLuc(getSoHoChieuDoiTuongTrichLuc());
        yeuCauTrichLucImpl.setNgayCapHoChieuDoiTuongTrichLuc(getNgayCapHoChieuDoiTuongTrichLuc());
        yeuCauTrichLucImpl.setNoiCapHoChieuDoiTuongTrichLuc(getNoiCapHoChieuDoiTuongTrichLuc());
        yeuCauTrichLucImpl.setSoDinhDanhCaNhanDoiTuongTrichLuc(getSoDinhDanhCaNhanDoiTuongTrichLuc());
        yeuCauTrichLucImpl.setHoVaTenDoiTuongTrichLuc(getHoVaTenDoiTuongTrichLuc());
        yeuCauTrichLucImpl.setNgaySinhDoiTuongTrichLuc(getNgaySinhDoiTuongTrichLuc());
        yeuCauTrichLucImpl.setNoiThuongTruDoiTuongTrichLucTinhId(getNoiThuongTruDoiTuongTrichLucTinhId());
        yeuCauTrichLucImpl.setNoiThuongTruDoiTuongTrichLucQuanHuyenId(getNoiThuongTruDoiTuongTrichLucQuanHuyenId());
        yeuCauTrichLucImpl.setNoiThuongTruDoiTuongTrichLucPhuongXaId(getNoiThuongTruDoiTuongTrichLucPhuongXaId());
        yeuCauTrichLucImpl.setNoiThuongTruDoiTuongTrichLucDiaChi(getNoiThuongTruDoiTuongTrichLucDiaChi());
        yeuCauTrichLucImpl.setSoSoHoKhauDoiTuongTrichLuc(getSoSoHoKhauDoiTuongTrichLuc());
        yeuCauTrichLucImpl.setNoiDungTrichLuc(getNoiDungTrichLuc());
        yeuCauTrichLucImpl.setNgayDeNghiTraTrichLuc(getNgayDeNghiTraTrichLuc());
        yeuCauTrichLucImpl.setNgayLapTrichLuc(getNgayLapTrichLuc());
        yeuCauTrichLucImpl.setChuThich(getChuThich());
        yeuCauTrichLucImpl.setMaYeuCauTrichLuc(getMaYeuCauTrichLuc());
        yeuCauTrichLucImpl.setHoVaTenGoiKhac(getHoVaTenGoiKhac());
        yeuCauTrichLucImpl.setHoVaTenCha(getHoVaTenCha());
        yeuCauTrichLucImpl.setHoVaTenMe(getHoVaTenMe());
        yeuCauTrichLucImpl.setHoTenVoHoacChong(getHoTenVoHoacChong());
        yeuCauTrichLucImpl.setCoQuanYeuCauTrichLuc(getCoQuanYeuCauTrichLuc());
        yeuCauTrichLucImpl.setNoiTamTruDoiTuongTrichLucTinhId(getNoiTamTruDoiTuongTrichLucTinhId());
        yeuCauTrichLucImpl.setNoiTamTruDoiTuongTrichLucQuanHuyenId(getNoiTamTruDoiTuongTrichLucQuanHuyenId());
        yeuCauTrichLucImpl.setNoiTamTruDoiTuongTrichLucPhuongXaId(getNoiTamTruDoiTuongTrichLucPhuongXaId());
        yeuCauTrichLucImpl.setNoiTamTruDoiTuongTrichLucDiaChi(getNoiTamTruDoiTuongTrichLucDiaChi());
        yeuCauTrichLucImpl.setDaTrichLuc(getDaTrichLuc());
        yeuCauTrichLucImpl.setNoiSinh(getNoiSinh());
        yeuCauTrichLucImpl.setNoiSinhTinhId(getNoiSinhTinhId());
        yeuCauTrichLucImpl.setNoiSinhQuanHuyenId(getNoiSinhQuanHuyenId());
        yeuCauTrichLucImpl.setNoiSinhPhuongXaId(getNoiSinhPhuongXaId());

        yeuCauTrichLucImpl.resetOriginalValues();

        return yeuCauTrichLucImpl;
    }

    @Override
    public int compareTo(YeuCauTrichLuc yeuCauTrichLuc) {
        int value = 0;

        value = DateUtil.compareTo(getCreateDate(),
                yeuCauTrichLuc.getCreateDate());

        value = value * -1;

        if (value != 0) {
            return value;
        }

        return 0;
    }

    @Override
    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }

        if (!(obj instanceof YeuCauTrichLuc)) {
            return false;
        }

        YeuCauTrichLuc yeuCauTrichLuc = (YeuCauTrichLuc) obj;

        long primaryKey = yeuCauTrichLuc.getPrimaryKey();

        if (getPrimaryKey() == primaryKey) {
            return true;
        } else {
            return false;
        }
    }

    @Override
    public int hashCode() {
        return (int) getPrimaryKey();
    }

    @Override
    public void resetOriginalValues() {
        YeuCauTrichLucModelImpl yeuCauTrichLucModelImpl = this;

        yeuCauTrichLucModelImpl._originalHoVaTenNguoiYeuCauTrichLuc = yeuCauTrichLucModelImpl._hoVaTenNguoiYeuCauTrichLuc;

        yeuCauTrichLucModelImpl._originalSoCMNDDoiTuongTrichLuc = yeuCauTrichLucModelImpl._soCMNDDoiTuongTrichLuc;

        yeuCauTrichLucModelImpl._originalSoDinhDanhCaNhanDoiTuongTrichLuc = yeuCauTrichLucModelImpl._soDinhDanhCaNhanDoiTuongTrichLuc;

        yeuCauTrichLucModelImpl._originalHoVaTenDoiTuongTrichLuc = yeuCauTrichLucModelImpl._hoVaTenDoiTuongTrichLuc;

        yeuCauTrichLucModelImpl._originalSoSoHoKhauDoiTuongTrichLuc = yeuCauTrichLucModelImpl._soSoHoKhauDoiTuongTrichLuc;

        yeuCauTrichLucModelImpl._originalDaTrichLuc = yeuCauTrichLucModelImpl._daTrichLuc;

        yeuCauTrichLucModelImpl._setOriginalDaTrichLuc = false;

        yeuCauTrichLucModelImpl._columnBitmask = 0;
    }

    @Override
    public CacheModel<YeuCauTrichLuc> toCacheModel() {
        YeuCauTrichLucCacheModel yeuCauTrichLucCacheModel = new YeuCauTrichLucCacheModel();

        yeuCauTrichLucCacheModel.yeuCauTrichLucId = getYeuCauTrichLucId();

        yeuCauTrichLucCacheModel.userId = getUserId();

        yeuCauTrichLucCacheModel.userName = getUserName();

        String userName = yeuCauTrichLucCacheModel.userName;

        if ((userName != null) && (userName.length() == 0)) {
            yeuCauTrichLucCacheModel.userName = null;
        }

        Date createDate = getCreateDate();

        if (createDate != null) {
            yeuCauTrichLucCacheModel.createDate = createDate.getTime();
        } else {
            yeuCauTrichLucCacheModel.createDate = Long.MIN_VALUE;
        }

        Date modifiedDate = getModifiedDate();

        if (modifiedDate != null) {
            yeuCauTrichLucCacheModel.modifiedDate = modifiedDate.getTime();
        } else {
            yeuCauTrichLucCacheModel.modifiedDate = Long.MIN_VALUE;
        }

        yeuCauTrichLucCacheModel.hoVaTenNguoiYeuCauTrichLuc = getHoVaTenNguoiYeuCauTrichLuc();

        String hoVaTenNguoiYeuCauTrichLuc = yeuCauTrichLucCacheModel.hoVaTenNguoiYeuCauTrichLuc;

        if ((hoVaTenNguoiYeuCauTrichLuc != null) &&
                (hoVaTenNguoiYeuCauTrichLuc.length() == 0)) {
            yeuCauTrichLucCacheModel.hoVaTenNguoiYeuCauTrichLuc = null;
        }

        yeuCauTrichLucCacheModel.kinhGui = getKinhGui();

        String kinhGui = yeuCauTrichLucCacheModel.kinhGui;

        if ((kinhGui != null) && (kinhGui.length() == 0)) {
            yeuCauTrichLucCacheModel.kinhGui = null;
        }

        yeuCauTrichLucCacheModel.gioiTinh = getGioiTinh();

        yeuCauTrichLucCacheModel.quocTich = getQuocTich();

        String quocTich = yeuCauTrichLucCacheModel.quocTich;

        if ((quocTich != null) && (quocTich.length() == 0)) {
            yeuCauTrichLucCacheModel.quocTich = null;
        }

        yeuCauTrichLucCacheModel.danTocId = getDanTocId();

        yeuCauTrichLucCacheModel.soCMNDDoiTuongTrichLuc = getSoCMNDDoiTuongTrichLuc();

        String soCMNDDoiTuongTrichLuc = yeuCauTrichLucCacheModel.soCMNDDoiTuongTrichLuc;

        if ((soCMNDDoiTuongTrichLuc != null) &&
                (soCMNDDoiTuongTrichLuc.length() == 0)) {
            yeuCauTrichLucCacheModel.soCMNDDoiTuongTrichLuc = null;
        }

        Date ngayCapCMNDDoiTuongTrichLuc = getNgayCapCMNDDoiTuongTrichLuc();

        if (ngayCapCMNDDoiTuongTrichLuc != null) {
            yeuCauTrichLucCacheModel.ngayCapCMNDDoiTuongTrichLuc = ngayCapCMNDDoiTuongTrichLuc.getTime();
        } else {
            yeuCauTrichLucCacheModel.ngayCapCMNDDoiTuongTrichLuc = Long.MIN_VALUE;
        }

        yeuCauTrichLucCacheModel.noiCapCMNDDoiTuongTrichLuc = getNoiCapCMNDDoiTuongTrichLuc();

        String noiCapCMNDDoiTuongTrichLuc = yeuCauTrichLucCacheModel.noiCapCMNDDoiTuongTrichLuc;

        if ((noiCapCMNDDoiTuongTrichLuc != null) &&
                (noiCapCMNDDoiTuongTrichLuc.length() == 0)) {
            yeuCauTrichLucCacheModel.noiCapCMNDDoiTuongTrichLuc = null;
        }

        yeuCauTrichLucCacheModel.soHoChieuDoiTuongTrichLuc = getSoHoChieuDoiTuongTrichLuc();

        String soHoChieuDoiTuongTrichLuc = yeuCauTrichLucCacheModel.soHoChieuDoiTuongTrichLuc;

        if ((soHoChieuDoiTuongTrichLuc != null) &&
                (soHoChieuDoiTuongTrichLuc.length() == 0)) {
            yeuCauTrichLucCacheModel.soHoChieuDoiTuongTrichLuc = null;
        }

        Date ngayCapHoChieuDoiTuongTrichLuc = getNgayCapHoChieuDoiTuongTrichLuc();

        if (ngayCapHoChieuDoiTuongTrichLuc != null) {
            yeuCauTrichLucCacheModel.ngayCapHoChieuDoiTuongTrichLuc = ngayCapHoChieuDoiTuongTrichLuc.getTime();
        } else {
            yeuCauTrichLucCacheModel.ngayCapHoChieuDoiTuongTrichLuc = Long.MIN_VALUE;
        }

        yeuCauTrichLucCacheModel.noiCapHoChieuDoiTuongTrichLuc = getNoiCapHoChieuDoiTuongTrichLuc();

        String noiCapHoChieuDoiTuongTrichLuc = yeuCauTrichLucCacheModel.noiCapHoChieuDoiTuongTrichLuc;

        if ((noiCapHoChieuDoiTuongTrichLuc != null) &&
                (noiCapHoChieuDoiTuongTrichLuc.length() == 0)) {
            yeuCauTrichLucCacheModel.noiCapHoChieuDoiTuongTrichLuc = null;
        }

        yeuCauTrichLucCacheModel.soDinhDanhCaNhanDoiTuongTrichLuc = getSoDinhDanhCaNhanDoiTuongTrichLuc();

        String soDinhDanhCaNhanDoiTuongTrichLuc = yeuCauTrichLucCacheModel.soDinhDanhCaNhanDoiTuongTrichLuc;

        if ((soDinhDanhCaNhanDoiTuongTrichLuc != null) &&
                (soDinhDanhCaNhanDoiTuongTrichLuc.length() == 0)) {
            yeuCauTrichLucCacheModel.soDinhDanhCaNhanDoiTuongTrichLuc = null;
        }

        yeuCauTrichLucCacheModel.hoVaTenDoiTuongTrichLuc = getHoVaTenDoiTuongTrichLuc();

        String hoVaTenDoiTuongTrichLuc = yeuCauTrichLucCacheModel.hoVaTenDoiTuongTrichLuc;

        if ((hoVaTenDoiTuongTrichLuc != null) &&
                (hoVaTenDoiTuongTrichLuc.length() == 0)) {
            yeuCauTrichLucCacheModel.hoVaTenDoiTuongTrichLuc = null;
        }

        Date ngaySinhDoiTuongTrichLuc = getNgaySinhDoiTuongTrichLuc();

        if (ngaySinhDoiTuongTrichLuc != null) {
            yeuCauTrichLucCacheModel.ngaySinhDoiTuongTrichLuc = ngaySinhDoiTuongTrichLuc.getTime();
        } else {
            yeuCauTrichLucCacheModel.ngaySinhDoiTuongTrichLuc = Long.MIN_VALUE;
        }

        yeuCauTrichLucCacheModel.noiThuongTruDoiTuongTrichLucTinhId = getNoiThuongTruDoiTuongTrichLucTinhId();

        yeuCauTrichLucCacheModel.noiThuongTruDoiTuongTrichLucQuanHuyenId = getNoiThuongTruDoiTuongTrichLucQuanHuyenId();

        yeuCauTrichLucCacheModel.noiThuongTruDoiTuongTrichLucPhuongXaId = getNoiThuongTruDoiTuongTrichLucPhuongXaId();

        yeuCauTrichLucCacheModel.noiThuongTruDoiTuongTrichLucDiaChi = getNoiThuongTruDoiTuongTrichLucDiaChi();

        String noiThuongTruDoiTuongTrichLucDiaChi = yeuCauTrichLucCacheModel.noiThuongTruDoiTuongTrichLucDiaChi;

        if ((noiThuongTruDoiTuongTrichLucDiaChi != null) &&
                (noiThuongTruDoiTuongTrichLucDiaChi.length() == 0)) {
            yeuCauTrichLucCacheModel.noiThuongTruDoiTuongTrichLucDiaChi = null;
        }

        yeuCauTrichLucCacheModel.soSoHoKhauDoiTuongTrichLuc = getSoSoHoKhauDoiTuongTrichLuc();

        String soSoHoKhauDoiTuongTrichLuc = yeuCauTrichLucCacheModel.soSoHoKhauDoiTuongTrichLuc;

        if ((soSoHoKhauDoiTuongTrichLuc != null) &&
                (soSoHoKhauDoiTuongTrichLuc.length() == 0)) {
            yeuCauTrichLucCacheModel.soSoHoKhauDoiTuongTrichLuc = null;
        }

        yeuCauTrichLucCacheModel.noiDungTrichLuc = getNoiDungTrichLuc();

        String noiDungTrichLuc = yeuCauTrichLucCacheModel.noiDungTrichLuc;

        if ((noiDungTrichLuc != null) && (noiDungTrichLuc.length() == 0)) {
            yeuCauTrichLucCacheModel.noiDungTrichLuc = null;
        }

        Date ngayDeNghiTraTrichLuc = getNgayDeNghiTraTrichLuc();

        if (ngayDeNghiTraTrichLuc != null) {
            yeuCauTrichLucCacheModel.ngayDeNghiTraTrichLuc = ngayDeNghiTraTrichLuc.getTime();
        } else {
            yeuCauTrichLucCacheModel.ngayDeNghiTraTrichLuc = Long.MIN_VALUE;
        }

        Date ngayLapTrichLuc = getNgayLapTrichLuc();

        if (ngayLapTrichLuc != null) {
            yeuCauTrichLucCacheModel.ngayLapTrichLuc = ngayLapTrichLuc.getTime();
        } else {
            yeuCauTrichLucCacheModel.ngayLapTrichLuc = Long.MIN_VALUE;
        }

        yeuCauTrichLucCacheModel.chuThich = getChuThich();

        String chuThich = yeuCauTrichLucCacheModel.chuThich;

        if ((chuThich != null) && (chuThich.length() == 0)) {
            yeuCauTrichLucCacheModel.chuThich = null;
        }

        yeuCauTrichLucCacheModel.maYeuCauTrichLuc = getMaYeuCauTrichLuc();

        String maYeuCauTrichLuc = yeuCauTrichLucCacheModel.maYeuCauTrichLuc;

        if ((maYeuCauTrichLuc != null) && (maYeuCauTrichLuc.length() == 0)) {
            yeuCauTrichLucCacheModel.maYeuCauTrichLuc = null;
        }

        yeuCauTrichLucCacheModel.hoVaTenGoiKhac = getHoVaTenGoiKhac();

        String hoVaTenGoiKhac = yeuCauTrichLucCacheModel.hoVaTenGoiKhac;

        if ((hoVaTenGoiKhac != null) && (hoVaTenGoiKhac.length() == 0)) {
            yeuCauTrichLucCacheModel.hoVaTenGoiKhac = null;
        }

        yeuCauTrichLucCacheModel.hoVaTenCha = getHoVaTenCha();

        String hoVaTenCha = yeuCauTrichLucCacheModel.hoVaTenCha;

        if ((hoVaTenCha != null) && (hoVaTenCha.length() == 0)) {
            yeuCauTrichLucCacheModel.hoVaTenCha = null;
        }

        yeuCauTrichLucCacheModel.hoVaTenMe = getHoVaTenMe();

        String hoVaTenMe = yeuCauTrichLucCacheModel.hoVaTenMe;

        if ((hoVaTenMe != null) && (hoVaTenMe.length() == 0)) {
            yeuCauTrichLucCacheModel.hoVaTenMe = null;
        }

        yeuCauTrichLucCacheModel.hoTenVoHoacChong = getHoTenVoHoacChong();

        String hoTenVoHoacChong = yeuCauTrichLucCacheModel.hoTenVoHoacChong;

        if ((hoTenVoHoacChong != null) && (hoTenVoHoacChong.length() == 0)) {
            yeuCauTrichLucCacheModel.hoTenVoHoacChong = null;
        }

        yeuCauTrichLucCacheModel.coQuanYeuCauTrichLuc = getCoQuanYeuCauTrichLuc();

        String coQuanYeuCauTrichLuc = yeuCauTrichLucCacheModel.coQuanYeuCauTrichLuc;

        if ((coQuanYeuCauTrichLuc != null) &&
                (coQuanYeuCauTrichLuc.length() == 0)) {
            yeuCauTrichLucCacheModel.coQuanYeuCauTrichLuc = null;
        }

        yeuCauTrichLucCacheModel.noiTamTruDoiTuongTrichLucTinhId = getNoiTamTruDoiTuongTrichLucTinhId();

        yeuCauTrichLucCacheModel.noiTamTruDoiTuongTrichLucQuanHuyenId = getNoiTamTruDoiTuongTrichLucQuanHuyenId();

        yeuCauTrichLucCacheModel.noiTamTruDoiTuongTrichLucPhuongXaId = getNoiTamTruDoiTuongTrichLucPhuongXaId();

        yeuCauTrichLucCacheModel.noiTamTruDoiTuongTrichLucDiaChi = getNoiTamTruDoiTuongTrichLucDiaChi();

        String noiTamTruDoiTuongTrichLucDiaChi = yeuCauTrichLucCacheModel.noiTamTruDoiTuongTrichLucDiaChi;

        if ((noiTamTruDoiTuongTrichLucDiaChi != null) &&
                (noiTamTruDoiTuongTrichLucDiaChi.length() == 0)) {
            yeuCauTrichLucCacheModel.noiTamTruDoiTuongTrichLucDiaChi = null;
        }

        yeuCauTrichLucCacheModel.daTrichLuc = getDaTrichLuc();

        yeuCauTrichLucCacheModel.noiSinh = getNoiSinh();

        String noiSinh = yeuCauTrichLucCacheModel.noiSinh;

        if ((noiSinh != null) && (noiSinh.length() == 0)) {
            yeuCauTrichLucCacheModel.noiSinh = null;
        }

        yeuCauTrichLucCacheModel.noiSinhTinhId = getNoiSinhTinhId();

        yeuCauTrichLucCacheModel.noiSinhQuanHuyenId = getNoiSinhQuanHuyenId();

        yeuCauTrichLucCacheModel.noiSinhPhuongXaId = getNoiSinhPhuongXaId();

        return yeuCauTrichLucCacheModel;
    }

    @Override
    public String toString() {
        StringBundler sb = new StringBundler(87);

        sb.append("{yeuCauTrichLucId=");
        sb.append(getYeuCauTrichLucId());
        sb.append(", userId=");
        sb.append(getUserId());
        sb.append(", userName=");
        sb.append(getUserName());
        sb.append(", createDate=");
        sb.append(getCreateDate());
        sb.append(", modifiedDate=");
        sb.append(getModifiedDate());
        sb.append(", hoVaTenNguoiYeuCauTrichLuc=");
        sb.append(getHoVaTenNguoiYeuCauTrichLuc());
        sb.append(", kinhGui=");
        sb.append(getKinhGui());
        sb.append(", gioiTinh=");
        sb.append(getGioiTinh());
        sb.append(", quocTich=");
        sb.append(getQuocTich());
        sb.append(", danTocId=");
        sb.append(getDanTocId());
        sb.append(", soCMNDDoiTuongTrichLuc=");
        sb.append(getSoCMNDDoiTuongTrichLuc());
        sb.append(", ngayCapCMNDDoiTuongTrichLuc=");
        sb.append(getNgayCapCMNDDoiTuongTrichLuc());
        sb.append(", noiCapCMNDDoiTuongTrichLuc=");
        sb.append(getNoiCapCMNDDoiTuongTrichLuc());
        sb.append(", soHoChieuDoiTuongTrichLuc=");
        sb.append(getSoHoChieuDoiTuongTrichLuc());
        sb.append(", ngayCapHoChieuDoiTuongTrichLuc=");
        sb.append(getNgayCapHoChieuDoiTuongTrichLuc());
        sb.append(", noiCapHoChieuDoiTuongTrichLuc=");
        sb.append(getNoiCapHoChieuDoiTuongTrichLuc());
        sb.append(", soDinhDanhCaNhanDoiTuongTrichLuc=");
        sb.append(getSoDinhDanhCaNhanDoiTuongTrichLuc());
        sb.append(", hoVaTenDoiTuongTrichLuc=");
        sb.append(getHoVaTenDoiTuongTrichLuc());
        sb.append(", ngaySinhDoiTuongTrichLuc=");
        sb.append(getNgaySinhDoiTuongTrichLuc());
        sb.append(", noiThuongTruDoiTuongTrichLucTinhId=");
        sb.append(getNoiThuongTruDoiTuongTrichLucTinhId());
        sb.append(", noiThuongTruDoiTuongTrichLucQuanHuyenId=");
        sb.append(getNoiThuongTruDoiTuongTrichLucQuanHuyenId());
        sb.append(", noiThuongTruDoiTuongTrichLucPhuongXaId=");
        sb.append(getNoiThuongTruDoiTuongTrichLucPhuongXaId());
        sb.append(", noiThuongTruDoiTuongTrichLucDiaChi=");
        sb.append(getNoiThuongTruDoiTuongTrichLucDiaChi());
        sb.append(", soSoHoKhauDoiTuongTrichLuc=");
        sb.append(getSoSoHoKhauDoiTuongTrichLuc());
        sb.append(", noiDungTrichLuc=");
        sb.append(getNoiDungTrichLuc());
        sb.append(", ngayDeNghiTraTrichLuc=");
        sb.append(getNgayDeNghiTraTrichLuc());
        sb.append(", ngayLapTrichLuc=");
        sb.append(getNgayLapTrichLuc());
        sb.append(", chuThich=");
        sb.append(getChuThich());
        sb.append(", maYeuCauTrichLuc=");
        sb.append(getMaYeuCauTrichLuc());
        sb.append(", hoVaTenGoiKhac=");
        sb.append(getHoVaTenGoiKhac());
        sb.append(", hoVaTenCha=");
        sb.append(getHoVaTenCha());
        sb.append(", hoVaTenMe=");
        sb.append(getHoVaTenMe());
        sb.append(", hoTenVoHoacChong=");
        sb.append(getHoTenVoHoacChong());
        sb.append(", coQuanYeuCauTrichLuc=");
        sb.append(getCoQuanYeuCauTrichLuc());
        sb.append(", noiTamTruDoiTuongTrichLucTinhId=");
        sb.append(getNoiTamTruDoiTuongTrichLucTinhId());
        sb.append(", noiTamTruDoiTuongTrichLucQuanHuyenId=");
        sb.append(getNoiTamTruDoiTuongTrichLucQuanHuyenId());
        sb.append(", noiTamTruDoiTuongTrichLucPhuongXaId=");
        sb.append(getNoiTamTruDoiTuongTrichLucPhuongXaId());
        sb.append(", noiTamTruDoiTuongTrichLucDiaChi=");
        sb.append(getNoiTamTruDoiTuongTrichLucDiaChi());
        sb.append(", daTrichLuc=");
        sb.append(getDaTrichLuc());
        sb.append(", noiSinh=");
        sb.append(getNoiSinh());
        sb.append(", noiSinhTinhId=");
        sb.append(getNoiSinhTinhId());
        sb.append(", noiSinhQuanHuyenId=");
        sb.append(getNoiSinhQuanHuyenId());
        sb.append(", noiSinhPhuongXaId=");
        sb.append(getNoiSinhPhuongXaId());
        sb.append("}");

        return sb.toString();
    }

    @Override
    public String toXmlString() {
        StringBundler sb = new StringBundler(133);

        sb.append("<model><model-name>");
        sb.append("qldc.pm.tiensu.model.YeuCauTrichLuc");
        sb.append("</model-name>");

        sb.append(
            "<column><column-name>yeuCauTrichLucId</column-name><column-value><![CDATA[");
        sb.append(getYeuCauTrichLucId());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>userId</column-name><column-value><![CDATA[");
        sb.append(getUserId());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>userName</column-name><column-value><![CDATA[");
        sb.append(getUserName());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>createDate</column-name><column-value><![CDATA[");
        sb.append(getCreateDate());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>modifiedDate</column-name><column-value><![CDATA[");
        sb.append(getModifiedDate());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>hoVaTenNguoiYeuCauTrichLuc</column-name><column-value><![CDATA[");
        sb.append(getHoVaTenNguoiYeuCauTrichLuc());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>kinhGui</column-name><column-value><![CDATA[");
        sb.append(getKinhGui());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>gioiTinh</column-name><column-value><![CDATA[");
        sb.append(getGioiTinh());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>quocTich</column-name><column-value><![CDATA[");
        sb.append(getQuocTich());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>danTocId</column-name><column-value><![CDATA[");
        sb.append(getDanTocId());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>soCMNDDoiTuongTrichLuc</column-name><column-value><![CDATA[");
        sb.append(getSoCMNDDoiTuongTrichLuc());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>ngayCapCMNDDoiTuongTrichLuc</column-name><column-value><![CDATA[");
        sb.append(getNgayCapCMNDDoiTuongTrichLuc());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>noiCapCMNDDoiTuongTrichLuc</column-name><column-value><![CDATA[");
        sb.append(getNoiCapCMNDDoiTuongTrichLuc());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>soHoChieuDoiTuongTrichLuc</column-name><column-value><![CDATA[");
        sb.append(getSoHoChieuDoiTuongTrichLuc());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>ngayCapHoChieuDoiTuongTrichLuc</column-name><column-value><![CDATA[");
        sb.append(getNgayCapHoChieuDoiTuongTrichLuc());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>noiCapHoChieuDoiTuongTrichLuc</column-name><column-value><![CDATA[");
        sb.append(getNoiCapHoChieuDoiTuongTrichLuc());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>soDinhDanhCaNhanDoiTuongTrichLuc</column-name><column-value><![CDATA[");
        sb.append(getSoDinhDanhCaNhanDoiTuongTrichLuc());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>hoVaTenDoiTuongTrichLuc</column-name><column-value><![CDATA[");
        sb.append(getHoVaTenDoiTuongTrichLuc());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>ngaySinhDoiTuongTrichLuc</column-name><column-value><![CDATA[");
        sb.append(getNgaySinhDoiTuongTrichLuc());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>noiThuongTruDoiTuongTrichLucTinhId</column-name><column-value><![CDATA[");
        sb.append(getNoiThuongTruDoiTuongTrichLucTinhId());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>noiThuongTruDoiTuongTrichLucQuanHuyenId</column-name><column-value><![CDATA[");
        sb.append(getNoiThuongTruDoiTuongTrichLucQuanHuyenId());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>noiThuongTruDoiTuongTrichLucPhuongXaId</column-name><column-value><![CDATA[");
        sb.append(getNoiThuongTruDoiTuongTrichLucPhuongXaId());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>noiThuongTruDoiTuongTrichLucDiaChi</column-name><column-value><![CDATA[");
        sb.append(getNoiThuongTruDoiTuongTrichLucDiaChi());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>soSoHoKhauDoiTuongTrichLuc</column-name><column-value><![CDATA[");
        sb.append(getSoSoHoKhauDoiTuongTrichLuc());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>noiDungTrichLuc</column-name><column-value><![CDATA[");
        sb.append(getNoiDungTrichLuc());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>ngayDeNghiTraTrichLuc</column-name><column-value><![CDATA[");
        sb.append(getNgayDeNghiTraTrichLuc());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>ngayLapTrichLuc</column-name><column-value><![CDATA[");
        sb.append(getNgayLapTrichLuc());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>chuThich</column-name><column-value><![CDATA[");
        sb.append(getChuThich());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>maYeuCauTrichLuc</column-name><column-value><![CDATA[");
        sb.append(getMaYeuCauTrichLuc());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>hoVaTenGoiKhac</column-name><column-value><![CDATA[");
        sb.append(getHoVaTenGoiKhac());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>hoVaTenCha</column-name><column-value><![CDATA[");
        sb.append(getHoVaTenCha());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>hoVaTenMe</column-name><column-value><![CDATA[");
        sb.append(getHoVaTenMe());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>hoTenVoHoacChong</column-name><column-value><![CDATA[");
        sb.append(getHoTenVoHoacChong());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>coQuanYeuCauTrichLuc</column-name><column-value><![CDATA[");
        sb.append(getCoQuanYeuCauTrichLuc());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>noiTamTruDoiTuongTrichLucTinhId</column-name><column-value><![CDATA[");
        sb.append(getNoiTamTruDoiTuongTrichLucTinhId());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>noiTamTruDoiTuongTrichLucQuanHuyenId</column-name><column-value><![CDATA[");
        sb.append(getNoiTamTruDoiTuongTrichLucQuanHuyenId());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>noiTamTruDoiTuongTrichLucPhuongXaId</column-name><column-value><![CDATA[");
        sb.append(getNoiTamTruDoiTuongTrichLucPhuongXaId());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>noiTamTruDoiTuongTrichLucDiaChi</column-name><column-value><![CDATA[");
        sb.append(getNoiTamTruDoiTuongTrichLucDiaChi());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>daTrichLuc</column-name><column-value><![CDATA[");
        sb.append(getDaTrichLuc());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>noiSinh</column-name><column-value><![CDATA[");
        sb.append(getNoiSinh());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>noiSinhTinhId</column-name><column-value><![CDATA[");
        sb.append(getNoiSinhTinhId());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>noiSinhQuanHuyenId</column-name><column-value><![CDATA[");
        sb.append(getNoiSinhQuanHuyenId());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>noiSinhPhuongXaId</column-name><column-value><![CDATA[");
        sb.append(getNoiSinhPhuongXaId());
        sb.append("]]></column-value></column>");

        sb.append("</model>");

        return sb.toString();
    }
}
